package com.zscat.mallplus.dms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zscat.mallplus.dms.entity.DmsOrder;
import com.zscat.mallplus.dms.mapper.DmsOrderMapper;
import com.zscat.mallplus.dms.service.IDmsOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class DmsOrderServiceImpl extends ServiceImpl<DmsOrderMapper, DmsOrder> implements IDmsOrderService {

    @Resource
    private DmsOrderMapper dmsOrderMapper;

    @Override
    public boolean closeOrder(DmsOrder order) {
        return dmsOrderMapper.deleteById(order.getId()) > 0;
    }
}
